hackerrank reverse a doubly linked list problem solution in python

visit shbcf.ru